# coding=utf-8
"""
Author: Mr.夏末
@Function: 功能名称
"""
c = [[['', '', '打开浏览器', 'openbrowser', '', '', '', '', ''],
      ['', '', '进入登录页面', 'get_url', 'http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '', ''],
      ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '', ''],
      ['', '', '输入密码', 'input', '//*[@id="password"]', '1234561', '', '', ''],
      ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''],
      ['', '', '点击登录', 'click', '//*[@id="loginform"]/div/div[6]/a', '', '', '', ''],
      ['', '', '等待', 'sleep', '1', '', '', '', ''],
      ['', '', '获取提示', 'get_text', '//*[@id="layui-layer1"]/div[2]', '', '', '', ''],
      ['', '', '进入登录页面', 'get_url', 'http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '', ''],
      ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '', ''],
      ['', '', '输入密码', 'input', '//*[@id="password"]', '123456', '', '', ''],
      ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''],
      ['', '', '点击登录', 'click', '//*[@id="loginform"]/div/div[6]/a', '', '', '', ''],
      ['', '', '等待', 'sleep', '1', '', '', '', ''],
      ['', '', '点击登录', 'click', '//a[text()="安全退出"]', '', '', '', ''],
      ['', '', '进入登录页面', 'get_url', 'http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '', ''],
      ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '', ''],
      ['', '', '输入密码', 'input', '//*[@id="password"]', '123456', '', '', ''],
      ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''],
      ['', '', '点击登录', 'click', '//*[@id="loginform"]/div/div[6]/a', '', '', '', ''],
      ['', '', '等待', 'sleep', '1', '', '', '', '']],
     [['', '', '打开浏览器', 'openbrowser', '', '', '', '', ''],
      ['', '', '进入登录页面', 'get_url', 'http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '', ''],
      ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '', ''],
      ['', '', '输入密码', 'input', '//*[@id="password"]', '1234561', '', '', ''],
      ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''],
      ['', '', '点击登录', 'click', '//*[@id="loginform"]/div/div[6]/a', '', '', '', ''],
      ['', '', '等待', 'sleep', '1', '', '', '', ''],
      ['', '', '获取提示', 'get_text', '//*[@id="layui-layer1"]/div[2]', '', '', '', ''],
      ['', '', '进入登录页面', 'get_url', 'http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '', ''],
      ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '', ''], ['', '', '输入密码', 'input', '//*[@id="password"]', '123456', '', '', ''], ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''], ['', '', '点击登录', 'click', '//*[@id="loginform"]/div/div[6]/a', '', '', '', ''], ['', '', '等待', 'sleep', '1', '', '', '', ''], ['', '', '点击登录', 'click', '//a[text()="安全退出"]', '', '', '', ''], ['', '', '进入登录页面', 'get_url', 'http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '', ''], ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '', ''], ['', '', '输入密码', 'input', '//*[@id="password"]', '123456', '', '', ''], ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''], ['', '', '点击登录', 'click', '//*[@id="loginform"]/div/div[6]/a', '', '', '', ''], ['', '', '等待', 'sleep', '1', '', '', '', '']]]

c1 = [[['', '', '打开浏览器', 'openbrowser', '', '', '', '', ''], ['', '', '进入登录页面', 'get_url', 'http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '', ''], ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '', ''], ['', '', '输入密码', 'input', '//*[@id="password"]', '1234561', '', '', ''], ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''], ['', '', '点击登录', 'click', '//*[@id="loginform"]/div/div[6]/a', '', '', '', ''], ['', '', '等待', 'sleep', '1', '', '', '', ''], ['', '', '获取提示', 'get_text', '//*[@id="layui-layer1"]/div[2]', '', '', '', '']], [['', '', '进入登录页面', 'get_url', 'http://testingedu.com.cn:8000/index.php/Home/user/login.html', '', '', '', ''], ['', '', '输入用户名', 'input', '//*[@id="username"]', '13800138006', '', '', ''], ['', '', '输入密码', 'input', '//*[@id="password"]', '123456', '', '', ''], ['', '', '输入验证码', 'input', '//*[@id="verify_code"]', '11111', '', '', ''], ['', '', '点击登录', 'click', '//*[@id="loginform"]/div/div[6]/a', '', '', '', ''], ['', '', '等待', 'sleep', '1', '', '', '', ''], ['', '', '点击登录', 'click', '//a[text()="安全退出"]', '', '', '', '']]]


case_path='../lib/cases/电商项目用例.xlsx'
resultpath = case_path[::-1]
resultpath = resultpath.replace('/','-tluser/',1)
resultpath = resultpath[::-1]
print(resultpath)